package ph.com.gs3.formalistics.model.communicators;

import java.util.HashMap;
import java.util.Map;

import ph.com.gs3.formalistics.model.valueobjects.application.APIResponse;
import ph.com.gs3.formalistics.model.valueobjects.application.APIResponse.APIInvalidResponseException;

public class MessagingCommunicatorModule extends HttpCommunicatorModule {

	public MessagingCommunicatorModule(HttpCommunicator communicator, String server) {
		super(communicator, server);

	}

	public APIResponse getCurrentUserThreadList() throws CommunicatorException,
	        APIInvalidResponseException {

		commonValidation();

		String url = server + "/messaging/current_user_thread_list";

		Map<String, String> requestParams = new HashMap<>();
		requestParams.put("requested_response", "JSON");
		
		return getResponse(url, requestParams);

	}

}
